package Java_3_1;

public class Java_3_1_7 {

	public static void main(String[] args) {
		int sum=0;
		int sum1=0;
		for(int i=1;i<=100;++i) {
			if(i%3==0) {
				sum+=i;
			}
		}
		for(int i=1;i<=100;++i) {
			if(i%3!=0) {
				continue;
			}
			sum1 += i;
			
		}
		System.out.println(sum);
		System.out.println(sum1);
	}

}
